TAGs: implementing machine learning